package com.vito.oa.act.extend.service;

import com.vito.act.approval.service.ActApprovalProgressService;
import com.vito.act.model.ActExBussModel;
import com.vito.base.model.DataGrid;
import com.vito.base.model.MyHashMap;
import com.vito.base.model.Result;
import com.vito.oa.act.extend.model.OaActExBussModel;
import com.vito.oa.act.model.ActUserProcessSettingModel;

/**
 * 自定义流程控制接口
 * 
 * @author xuezhennan
 * 
 */
public interface OaActApprovalProgressService extends ActApprovalProgressService {
	/**
	 * 分页查询企业拥有流程
	 * 
	 * @param model
	 * @return
	 */
	public DataGrid<MyHashMap<String, String>> queryProgressByPage(OaActExBussModel model);

	/**
	 * 流程从企业移除
	 * 
	 * @param bussModel 
	 * <p>{@code 必要属性businessId,createDept}</p>
	 * @return Result
	 */
	public Result deleteProgress(ActExBussModel bussModel);

	/**
	 * 自定义创建流程
	 * 
	 * @param bussModel
	 * @return
	 */
	public Result addProgress(OaActExBussModel bussModel);
	/**
	 * 流程建立与企业关系
	 * @param processSetting
	 * @param operUser 操作人
	 */
	public void addProcessToCompany(ActUserProcessSettingModel processSetting,String operUser);
}
